#include "MyHTTPClient.h"
#include "RSSParser.h"

int main()
{
    MyHTTPClient client;
    client.sendRequest("http://www.feedzilla.com/rss/top-news/celebrities");
    RSSParser parse;
    parse.setContent(*client.recvRss());
    parse.startParsing();
    std::list<FluxRSS*> *myFlux = parse.getFlux();
    std::list<FluxRSS*>::iterator it;
    for (it = myFlux->begin(); it != myFlux->end(); ++it)
    {
        std::cout << (*it)->getTitle() << std::endl<<std::endl;
    }
    return 0;
}
